package com.wyc.serviceMap.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 地区字典对象 dic_district
 * 
 * @author li
 * @date 2023-03-23
 */

@TableName("dic_district")
@Data
public class DistrictDTO
{
    private static final long serialVersionUID = 1L;

    /** 地区编码 */
    private String addressCode;

    /** 地区名称 */
    private String addressName;

    /** 父地区编码 */
    private String parentAddressCode;

    /** 级别 */
    private Integer level;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("addressCode", getAddressCode())
            .append("addressName", getAddressName())
            .append("parentAddressCode", getParentAddressCode())
            .append("level", getLevel())
            .toString();
    }
}
